var t = getApp();

Component({
    properties: {
        params: {
            type: null
        },
        data: {
            type: null
        }
    },
    data: {
        title: "",
        logo: ""
    },
    lifetimes: {
        attached: function() {
            this.getData();
        },
        moved: function() {},
        detached: function() {}
    },
    attached: function() {},
    ready: function() {},
    pageLifetimes: {
        show: function() {},
        hide: function() {},
        resize: function() {}
    },
    methods: {
        getData: function() {
            var e = this, a = t.getNetAddresss("setting.get");
            t._getNetWork({
                showToastIn: !1,
                url: a,
                success: function(t) {
                    var a = t.data;
                    1 == a.result ? e.setData({
                        title: a.data.name ? a.data.name : "",
                        logo: a.data.logo ? a.data.logo : ""
                    }) : console.log(a.msg);
                },
                fail: function(t) {}
            });
        }
    }
});